x86/msr: further correct the emulation behaviour of MSR_PRED_CMD
authorJan Beulich <jbeulich@suse.com>
Wed, 18 Apr 2018 09:16:37 +0000 (11:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Apr 2018 09:16:37 +0000 (11:16 +0200)
commita996273d1fc10d14598985703227bfa35a91f681
tree1eeca98fbceba86f8ed955a203dc1da22a765378
parentc081d2a0a68f6e574d8803e2781cade365ccd351
x86/msr: further correct the emulation behaviour of MSR_PRED_CMD

Following commit a6aa678fa3 ("x86/msr: Correct the emulation behaviour
of MSR_PRED_CMD") we may end up writing the low bit with the wrong
value. While it's unlikely for a guest to want to write zero there, we
should still permit (this without incurring the overhead of an actual
barrier). Correcting this right away will also help whenever further
bits in the MSR might become defined.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/msr.c